package com.zhongli.devplatform.service.impl.im;

import com.zhongli.devplatform.component.im.TLSSigAPIGenerater;
import com.zhongli.devplatform.service.imp.im.ManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author WuXiCheng
 * @version 1.0
 */
@Service
public class ManageServiceImpl implements ManageService {

    @Autowired
    private TLSSigAPIGenerater sigAPIGenerater;

    /**
     * userSig 过期时间
     */
    private long expire = 60 * 60 * 24;

    @Override
    public String getUserSig(String userId){

        return sigAPIGenerater.genSig(userId, expire);
    }
}
